
using UnityEngine;
using UnityEngine.UI;

public class waterExist : MonoBehaviour
{
    // Start is called once before the first execution of Update after the MonoBehaviour is created
    Image img;
    void Start()
    {
        img=GetComponent<Image>();
    }

    // Update is called once per frame
    void Update()
    {
        img.fillAmount=Bubble.I.water/Bubble.I.waterMax;
    }
}
